// pages/user/user.js
var app = getApp()
var globalData = app.globalData
Page({

  /**
   * 页面的初始数据
   */
  data: {
    receiverInfo: null // 用户信息
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      receiverInfo: globalData.receiverInfo
    })
    let token = wx.getStorage({
      key: 'token',
      success: function (res) {
      },
      fail: () => {
        wx.navigateTo({
          url: '/pages/login/login',
        })
      }
    });
  },

})